<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class CzProductBlack extends ApiBaseModel
{
    use HasFactory;
    public $table = 'cz_product_black';

    protected $fillable = [
        'mobile',
        'remark',
        'status',
        'spec_id',
        'limit_num',
        'product_id'
    ];
    public function spec()
    {
        return $this->belongsTo(CzSpec::class, 'spec_id', 'id');
    }
    public function product()
    {
        return $this->belongsTo(CzProduct::class, 'product_id', 'id');
    }
}
